﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace CowboyAndZombies
{
    public class Cursor
    {
        public Texture2D textura;
        public Vector2 posicao;

        public void Update(GameTime gameTime)
        {
            MouseState mouse = Mouse.GetState();

            posicao.X = mouse.X - (textura.Width / 2);
            posicao.Y = mouse.Y - (textura.Height / 2);
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            float traz = 0.0f;

            spriteBatch.Draw(textura, posicao, new Rectangle(0, 0, 64, 64), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, traz);
        }
    }
}
